package com.tony.mindwarning.mpper;

import com.tony.mindwarning.pojo.Log;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: LogMapper
 * @Auther: 皮蛋布丁
 * @Date: 2021/04/07/22:06
 * @Description:
 */
@Mapper
public interface LogMapper {

    /**
    * @Description: addLog 插入登录日志信息
    * @Param: [log]
    * @return: int
    * @Author: 皮蛋布丁
    */
    int addLog(Log log);

    /**
    * @Description: getLogs 获取登录日志信息
    * @Param: [uname]
    * @return: java.util.List<com.tony.mindwarning.pojo.Log>
    * @Author: 皮蛋布丁
    */
    List<Log> getLogs(String uname);
}
